// 测试计划增删改查接口管理

import instance from "./http"

const plan = {
    // 获取测试计划
    getPlan(params) {
        return instance({
            method: 'GET',
            url: '/plan',
            params: params
        })
    },

    // 添加计划
    addPlan(data) {
        return instance({
            method: 'POST',
            url: '/plan',
            data: data
        })
    },

    // 删除计划
    deletePlan(data) {
        return instance({
            method: 'DELETE',
            url: '/plan',
            data: data
        })
    },
}

// 导出
export default plan